//2009/08/16 18:32:12
#include <iostream>
#include <string>
#include <vector>
#include <map>
#include <queue>
#include <sstream>
#include <algorithm>

using namespace std;

class SyllableCounter
{
public:
    int countSyllables(string word)
    {
        int cost = 0;
        int temp = 0;
        for (int i=0; i<word.size(); i++)
        {
            if (isvowels(word[i])) temp = 1;
            else
            {
                cost += temp;
                temp = 0;
            }
        }
		cost += temp;
        return cost;
    }
private:
    bool isvowels(char c)
    {
        return (c=='A' || c=='E' || c=='I' || c=='O' || c=='U');
    }
};
